package ping.client;

import java.net.InetAddress;
import java.time.LocalDate;
import java.time.LocalTime;

/**
 * 客户端参数类 
 */
public class ClientSocket {
	private int port;
	private InetAddress address;
	
	public InetAddress getAddress() {
		return address;
	}
	
	public int getPort() {
		return port;
	}
	
	public void setAddress(InetAddress address) {
		this.address = address;
	}
	
	public void setPort(int port) {
		this.port = port;
	}
	
	public ClientSocket(int port, InetAddress address) {
		// TODO Auto-generated constructor stub
		this.port = port;
		this.address = address;
	}
	
	public static String getData(int i) {
		return "PingUDP " + i + " " + LocalDate.now() + " " + LocalTime.now();
	}
}
